<footer>
    <div class="stripe clearfix">
        <div class="twitter">
            <img src = <?php echo $this->imgUrl . "/twitter.png"; ?> alt=""><div class="twitterList" data-user="rubenbristian"></div>
        </div>
    </div>

    <div class="mail">
        <div>
            <div class="mailInfo">
                <div>
                    <h4><?php echo $this->translate('newsletter_signup') ?></h4>
                    <form>
                        <input id="mailInput" type="text" placeholder="your email"  />
                        <div id="loading" class="hidden"><img src="<?php echo $this->imgUrl . "/ajax-loader.gif"; ?>" /></div>
                        <input id="mailSubmit"  type="submit" value="Go"/>
                        <p id="newslettersignupsuccess" class="hidden1">send request success</p>
                    </form>
                </div>
            </div>
            <span class="triangle">triangle</span>
            <span class="element rightElement"></span>
        </div>
    </div> 

    <div id="footerContent" >
        <section>
            <div class="clearfix">
                <div class="links column c-30 clearfix ">
                    <h3><?php echo $this->translate('recent_post') ?></h3>
                    <ul>
                        <li><a href="#">After Graduation</a></li>
                        <li><a href="#">Continuing Education</a></li>
                        <li><a href="#">Introducing Genetic</a></li>
                        <li><a href="#">Celebrating Founder's Day</a></li>
                    </ul>
                </div>
                <div class="news column c-40 clearfix">
                    <h3><?php echo $this->translate('popular_posts_widget') ?></h3>
                    <div class="clearfix">
                        <?php
                        if (count($this->tblNewsFooter) > 0) {
                            foreach ($this->tblNewsFooter as $key => $val) {
                                $title = $val['title'];
                                if (isset($val['en_content'])) {
                                    $content = $val['en_content'];
                                } else {
                                    $content = $val['vi_content'];
                                }

                                $image = $val['image'];
                                $date = $val['date'];
                                $newsid = $val['newsid'];
                                $linkNews = $this->baseUrl('/' . $this->lang . '/news/index/cid/' . $newsid);
                                ?>
                                <div class="post clearfix">
                                    <img src = <?php echo $this->imgUrl . '/other/' . $image; ?> alt="" width="84" height="55">
                                    <div class="info">
                                        <a href="<?php echo $linkNews; ?>"><h5><?php echo $title; ?></h5></a>
                                        <span><?php echo 'Posted on ' . $date; ?></span>
                                        <p><?php echo substr($content, 0, 52) . '.....'; ?></p>
                                    </div>
                                </div>
                                <?php
                            }
                        }
                        ?>
                    </div>
                </div>

                <div class="contact column c-30 clearfix ">
                    <h3><?php echo $this->translate('contact_form') ?></h3>
                    <form id="contactFooter">
                        <input id="name" type="text" placeholder="Name" value="" />
                        <input id="mail" type="text" placeholder="Email" />
                        <textarea id="message" placeholder="Message"></textarea>
                    </form> 


                    <input id="submit" class="submit" type="submit" value="<?php echo $this->translate('submit') ?>"/>
                    <p id="contactSuccess" class="hidden sendmailsucces"><?php echo $this->translate('sendmailsuccess') ?></p>
                    <p id="contactError" class="hidden sendmailfail"><?php echo $this->translate('emptyfields1') ?></p>
                </div>
            </div>
            <div id="bottomFooter">
                <p>© 2014 Australian. All Rights Reserved</p>
                <div>
                    <ul id="social" >
                        <li><a href="https://twitter.com/" id="finalTwitter" target="_blank">twitter</a></li>
                        <li><a href="https://www.facebook.com/" id="finalFacebook" target="_blank">facebook</a></li>
                        <li><a href="#" id="finalFlickr">flickr</a></li>
                        <li><a href="#" id="finalRss">rss</a></li>
                    </ul>
                    <ul id="legal">
                        <li><a href="#">Privacy Policy</a></li>
                        <li><a href="#">Terms &amp; Condition</a></li>
                    </ul>
                </div>
            </div>
        </section>
        <input type="hidden" name="crrcontroller" value="<?php echo $this->url(); ?>">
    </div>
</footer>